package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_user_reward_log")
public class LogCrossUserReward {


    @FieldTypeAnnotation(desc = "玩家")
    long userId;

    @FieldTypeAnnotation(desc = "区服")
    long serverId;

    @FieldTypeAnnotation(desc = "系统")
    int systemId;

    @FieldTypeAnnotation(desc = "奖励类型")
    int rewardType;

    @FieldTypeAnnotation(desc = "奖励")
    String reward = "";

    @FieldTypeAnnotation(desc = "扩展参数")
    String param = "";

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossUserReward(long userId, long serverId, int systemId, int rewardType, String reward, String param) {
        this.userId = userId;
        this.serverId = serverId;
        this.systemId = systemId;
        this.rewardType = rewardType;
        this.reward = reward;
        this.param = param;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public int getSystemId() {
        return systemId;
    }

    public void setSystemId(int systemId) {
        this.systemId = systemId;
    }

    public int getRewardType() {
        return rewardType;
    }

    public void setRewardType(int rewardType) {
        this.rewardType = rewardType;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
